/**
 * Alipay.com Inc.
 * Copyright (c) 2004-2013 All Rights Reserved.
 */
package com.pingan.mobilegw.adapterservice.model;

/**
 * map操作记录
 * 
 * @author jiadao
 * @version $Id: MapOperation.java, v 0.1 2013-4-4 下午5:26:13 jiadao Exp $
 */
public class MapOperation extends ToString {

    /** serialVersionUID */
    private static final long serialVersionUID = 4088814150949496776L;

    /** 变更的key */
    private String            key;

    /** 变更的value */
    private Object            value;

    /** 变更的类型（增or删） */
    private OperationType     operationType;

    /**
     * @param key
     * @param value
     * @param operationType
     */
    public MapOperation(String key, Object value, OperationType operationType) {
        super();
        this.key = key;
        this.value = value;
        this.operationType = operationType;
    }

    /**
     * Getter method for property <tt>key</tt>.
     * 
     * @return property value of key
     */
    public String getKey() {
        return key;
    }

    /**
     * Setter method for property <tt>key</tt>.
     * 
     * @param key value to be assigned to property key
     */
    public void setKey(String key) {
        this.key = key;
    }

    /**
     * Getter method for property <tt>value</tt>.
     * 
     * @return property value of value
     */
    public Object getValue() {
        return value;
    }

    /**
     * Setter method for property <tt>value</tt>.
     * 
     * @param value value to be assigned to property value
     */
    public void setValue(Object value) {
        this.value = value;
    }

    /**
     * Getter method for property <tt>operationType</tt>.
     * 
     * @return property value of operationType
     */
    public OperationType getOperationType() {
        return operationType;
    }

    /**
     * Setter method for property <tt>operationType</tt>.
     * 
     * @param operationType value to be assigned to property operationType
     */
    public void setOperationType(OperationType operationType) {
        this.operationType = operationType;
    }

}
